function Event(dalEvent) 
{
	var colors = Array("green","indigo","fuchsia","DarkOrange","CornflowerBlue");

	this.Color = colors[Math.floor(Math.random() * colors.length)];
	this.DALObject = dalEvent;
	this.hasPoster = this.DALObject.Picture != '';
	this.hasArticle = this.DALObject.Picture != '';
	this.numberOfSubscriptions = 0;
	this.isMainEvent = false;
	this.classMainEvent = '';
	
	this.setIsMainEvent = function () { 
		this.isMainEvent = true;
		this.classMainEvent = 'mainevent';
	};
}